package com.mccrea.pattern.factory.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @Classname InputUtil
 * @Description 输入工具类
 * @Date 2021/5/7 0007 19:24
 * @Created by Mccrea_Gao
 */
public class InputUtil {
    private InputUtil() {

    }

    public static String getType() {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String s = "";
        System.out.println("请输入Pizza类型：");
        try {
            s = bufferedReader.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return s;
    }
}
